package com.example.widgethost;

import android.appwidget.AppWidgetHost;
import android.appwidget.AppWidgetHostView;
import android.appwidget.AppWidgetProviderInfo;
import android.content.Context;

public class LauncherAppWidgetHost extends AppWidgetHost {
    private static final int APP_WIDGET_HOST_ID = 2048;
    private Context mContext;

    /**
     * constructor.
     *
     * @param context context
     */
    public LauncherAppWidgetHost(Context context) {
        super(context, APP_WIDGET_HOST_ID);
        this.mContext = context;
    }


    @Override
    protected AppWidgetHostView onCreateView(Context context, int appWidgetId, AppWidgetProviderInfo appWidget) {
        LauncherAppWidgetHostView view = new LauncherAppWidgetHostView(context);
        return view;
    }

    @Override
    public void stopListening() {
        super.stopListening();
    }
}